@import '@/app/styles/variables';

.about {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  align-self: stretch;
}

.info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  align-self: stretch;
}

.course_type {
  color: #ababab;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 30px;
  margin-top: 6px;
}

.main_title {
  font-size: 42px;
  line-height: 46px;
}

.rating {
  display: flex;
  align-items: center;
  gap: 12px;
}

.link {
  all: unset;
  color: var(--simple-blue-day, #337cec);
  cursor: pointer;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px;
}
.moreBlock {
  position: relative;
}
.descriptionBasic {
  color: var(--simple-night, #000);
  font-style: normal;
  font-weight: 400;
  font-size: 20px;
  line-height: 30px;
  word-break: break-word;
  white-space: break-spaces;
}
.video {
  height: fit-content;
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  iframe {
    border: 0;
    aspect-ratio: 16 / 9;
    border-radius: inherit;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
}

.image {
  position: relative;
  height: 100px;
  width: 100px;
}

.book {
  display: grid;
  align-items: flex-start;
  gap: 32px;
  align-self: stretch;
  grid-template-columns: 1fr 1fr;
}

.book_image {
  position: relative;
  width: 100%;
  aspect-ratio: 464 / 611;
  background: var(--simple-gray-morning, #f3f3f3);
  box-shadow: 0 5.659px 5.659px 0 rgba(0, 0, 0, 0.04), 0 5.659px 22.634px 0 rgba(0, 0, 0, 0.08);

  img {
    object-fit: cover;
  }
}

.slider {
  position: absolute;
  left: 0;
  max-width: 100vw;
  .slick-slider {
    width: 100%;
    display: flex;
  }
}

.book_image_slide {
  position: relative;
  aspect-ratio: 464 / 611;

  margin-inline: auto;
  max-width: calc(100vw - 20px);
  max-height: 70vh;
  height: 100%;
  width: auto;
  box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.04), 0px 2px 8px 0px rgba(0, 0, 0, 0.08);
  background: var(--simple-gray-morning, #f3f3f3);

  img {
    margin: 0 auto;
    object-fit: cover;
  }
}

.mobile {
  display: none;
}

@include media(md) {
  .main_title {
    font-size: 32px;
    line-height: 40px;
  }
}

@include media(sm) {
  .rating {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .link {
    all: unset;
    color: var(--simple-blue-day, #337cec);
    cursor: pointer;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
  }
  .mobile {
    display: unset;
  }
  .video {
    border-radius: 16px;
  }
  .book {
    gap: 15px;
  }
  .descriptionBasic {
    -webkit-line-clamp: 12;
    line-clamp: 12;
    font-size: 16px;
    line-height: 22px;
  }
  .info {
    gap: 16px;
  }
  .course_type {
    font-size: 16px;
    line-height: 22px;
  }
  .main_title {
    font-size: 24px;
    line-height: 30px;
  }
}
